#include<stdio.h>
void exchange(int* a, int* b)
{
	int tmp = 0;
	tmp=*a;
	*a = *b;
	*b = tmp;
}

int main()
{
	int a = 0;
	int b = 0;
	scanf("%d", &a);
	scanf("%d", &b);
	exchange(&a, &b);
	printf("%d %d", a, b);
	return 0;
}